// vite.config.js
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import Components from "unplugin-vue-components/vite";
import NutUIResolver from "@nutui/auto-import-resolver";

// https://vitejs.dev/config/
export default defineConfig({
    resolve: {
        alias: {
            // 你的别名配置
            "@": "/src", // 示例别名，将 '@' 映射到 '/src'
            // 添加其他别名...
        },
    },
    plugins: [
        vue(),
        // 开启 unplugin 插件，自动引入 NutUI 组件
        Components({
            resolvers: [NutUIResolver()],
        }),
    ],
});
